public class Test_Matrix {
    public static void main(String[] args) {
        int[][] intMatrix1 = {
                {1, 2},
                {3, 4}
        };
        int[][] intMatrix2 = {
                {5, 6},
                {7, 8}
        };

        System.out.println("整数矩阵 1:");
        Matrix.print(intMatrix1);
        System.out.println("整数矩阵 2:");
        Matrix.print(intMatrix2);

        int[][] intSum = Matrix.add(intMatrix1, intMatrix2);
        System.out.println("整数矩阵相加结果:");
        Matrix.print(intSum);

        int[][] intDiff = Matrix.subtract(intMatrix1, intMatrix2);
        System.out.println("整数矩阵相减结果:");
        Matrix.print(intDiff);

        int[][] intProduct = Matrix.multiply(intMatrix1, intMatrix2);
        System.out.println("整数矩阵相乘结果:");
        Matrix.print(intProduct);

        double[][] doubleMatrix1 = {
                {1.1, 2.2},
                {3.3, 4.4}
        };
        double[][] doubleMatrix2 = {
                {5.5, 6.6},
                {7.7, 8.8}
        };

        System.out.println("双精度矩阵 1:");
        Matrix.print(doubleMatrix1);
        System.out.println("双精度矩阵 2:");
        Matrix.print(doubleMatrix2);

        double[][] doubleSum = Matrix.add(doubleMatrix1, doubleMatrix2);
        System.out.println("双精度矩阵相加结果:");
        Matrix.print(doubleSum);

        double[][] doubleDiff = Matrix.subtract(doubleMatrix1, doubleMatrix2);
        System.out.println("双精度矩阵相减结果:");
        Matrix.print(doubleDiff);

        double[][] doubleProduct = Matrix.multiply(doubleMatrix1, doubleMatrix2);
        System.out.println("双精度矩阵相乘结果:");
        Matrix.print(doubleProduct);
    }
}
